package com.hengyi.pda.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import com.common.mvp.BaseMvpActivity;
import com.common.mvp.BasePresenter;
import com.hengyi.pda.MainPdaActivity;
import com.hengyi.pda.R;
import com.hengyi.pda.SparePartAcy;
import com.hengyi.pda.jpush.MainActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

public class LoginActivity extends BaseMvpActivity {
    @BindView(R.id.et_phone)
    EditText etPhone;
    @BindView(R.id.et_psw)
    EditText etPsw;
    @BindView(R.id.tv_sendcode)
    TextView tvSendcode;
    @BindView(R.id.tv_forget_psw)
    TextView tvForgetPsw;
    @BindView(R.id.tv_intrue)
    TextView tvIntrue;

    @Override
    protected BasePresenter createPresenterInstance() {
        return null;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_login;
    }

    @Override
    protected void onViewCreated() {

    }

    @Override
    protected void doLogicFunc() {
        attachClickListener(tvIntrue);
    }

    @Override
    protected void onViewClicked(View view) {
        if (view.getId() == tvIntrue.getId()) {
            gotoActivity(SparePartAcy.class);
            finish();
        }
    }

    @Override
    public void bindKnife() {
        ButterKnife.bind(this);
    }
}
